﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucMenu.ascx.cs" Inherits="Corporate_ucControl_ucMenu" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<script type="text/javascript">
    $(document).ready(function() {
    $('#ctl00_ContentPlaceHolder1_ucMenu1_cbNumberPoeple').click(function() {
    $('#ctl00_ContentPlaceHolder1_ucMenu1_cbNumberPoeple_OptionList').css('top', '').css('left', '');
        });
    });
</script>
<div class="container">
    <div class="sixteen columns">
        <div class="content_left">
            <div>
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td>
                        <table style="width: 100%;">
                            <asp:ListView ID="lvMenu" runat="server" GroupItemCount="2" GroupPlaceholderID="layoutTemplate"
                                ItemPlaceholderID="groupPlaceholder">
                                <LayoutTemplate>
                                    <table id="layoutTemplate" runat="server" border="0" cellpadding="0" cellspacing="0">
                                    </table>
                                </LayoutTemplate>
                                <GroupTemplate>
                                    <tr>
                                        <div id="groupPlaceholder" runat="server">
                                        </div>
                                    </tr>
                                </GroupTemplate>
                                <ItemTemplate>
                                    <td >
                                        <asp:HyperLink ID="lnkItemDetails" runat="server" NavigateUrl="">
                                            <div class="productItemStyle" price='<%# Eval("Price") %>' matchedprice='0' code='<%# Eval("IDMenu") %>'>
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td align="center" style="padding: 5px">
                                                            <table>
                                                                <tr>
                                                                    <tr>
                                                                        <td align="center" id="rollover">
                                                                            <a id="A1" rel="lightbox-mygallery" runat="server" title='<%# Eval("MenuName") %>' href='<%# "~/ImageProcess.ashx?file=" + "~/Admin/img/ImageMenu/" + Eval("ImageURL")  %>'>
                                                                                <asp:Image ID="img" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/Admin/img/ImageMenu/" + Eval("ImageURL") + "&width=200&heigh=200&dd=true" %>'
                                                                                    AlternateText="No Image" />
                                                                            </a>
                                                                        </td>
                                                                    </tr>
                                                                    
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </asp:HyperLink>
                                    </td>
                                </ItemTemplate>
                            </asp:ListView>
                        </table>
                    </td>
                </tr>
                <%--<tr class="paging">
                    <td class="style1">
                        <asp:DataPager ID="DataPagerImages" runat="server" PagedControlID="lvMenu" PageSize="12">
                            <Fields>
                                <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="False" ShowNextPageButton="False"
                                    ShowPreviousPageButton="False" />
                                <asp:NumericPagerField />
                                <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="False" ShowNextPageButton="False"
                                    ShowPreviousPageButton="False" />
                            </Fields>
                        </asp:DataPager>
                    </td>
                </tr>--%>
            </table></div>
            <div class="items_menu">
                <p>
                    1/239 Canley Vale Rd, Canley Heights NSW 2166, Australia.</p>
                <p>
                    Mobile Phone: 042 393 2222<br />
                    Telephone: 9728 3338<br />
                    FAX: xx xxx xxx<br />
                    E-mail: <a href="">m@mprsc.com</a>
                </p>
            </div>
        </div>
        <div class="content_right">
            <div>
                <div class="spacer" style="text-align: left">
                    <span>Ordser</span>
                </div>
            </div>
            <div id="thanh">
                Customer Information</div>
            <div>
                <table width="100%" border="0">
                    <tr>
                        <td class="align">
                            &nbsp;
                        </td>
                        <td>
                            <asp:Label ID="lblMessage" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="align">
                            Fist Name :
                        </td>
                        <td>
                            <asp:TextBox ID="txt_fistname" runat="server" Width="200px" Height="20px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="align">
                            Last Name :
                        </td>
                        <td>
                            <asp:TextBox ID="txt_lastname" runat="server" Width="200px" Height="20px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="align">
                            Address :
                        </td>
                        <td>
                            <asp:TextBox ID="txt_address" runat="server" Width="200px" Height="20px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="align">
                            Mobile phone :
                        </td>
                        <td>
                            <asp:TextBox ID="txtmobilephone" runat="server" Width="200px" Height="20px" ValidationGroup="save"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                                ValidationGroup="save" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="align">
                            Email :
                        </td>
                        <td>
                            <asp:TextBox ID="txt_email" runat="server" Width="200px" Height="20px" ValidationGroup="save"></asp:TextBox>
                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txt_email"
                                WatermarkCssClass="clsWaterMarkRequiredField" WatermarkText="email@user.com">
                            </asp:TextBoxWatermarkExtender>
                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txt_email"
                                runat="server" ErrorMessage="*" SetFocusOnError="True" Display="Static" ValidationGroup="save"></asp:RequiredFieldValidator>&nbsp;
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Invalid email address"
                                Display="Static" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                ControlToValidate="txt_email" SetFocusOnError="True" ValidationGroup="save"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="margin-top: 10px;" id="thanh">
                Order Detail
            </div>
            <div style="margin-top: 10px;">
                <table width="100%" border="0" style="margin-left: -24px;">
                    <tr>
                        <td class="align">
                            Meal :
                        </td>
                        <td>
                            <asp:DropDownList ID="drMeal" runat="server" Width="200px" Height="24px">
                                <asp:ListItem Value="0" Text="Noon"></asp:ListItem>
                                <asp:ListItem Value="1" Text="Afternoon"></asp:ListItem>
                                <asp:ListItem Value="2" Text="Evening"></asp:ListItem>
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
                                ValidationGroup="save" ControlToValidate="drMeal"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="align">
                            Number Tables :
                        </td>
                        <td>
                            <%--<asp:DropDownList ID="drNumber" runat="server">
                                <asp:ListItem Value="0" Text=" --- Select Number Tables ---"></asp:ListItem>
                                <asp:ListItem Value="1" Text="10"></asp:ListItem>
                            </asp:DropDownList>--%>
                            <asp:ComboBox ID="cbNumberPoeple" runat="server" AutoCompleteMode="Append" Width="171px"
                                Height="20px">
                                <asp:ListItem Value="0" Text=" -- Select Number --"></asp:ListItem>
                                <asp:ListItem Value="1" Text="10"></asp:ListItem>
                                <asp:ListItem Value="2" Text="15"></asp:ListItem>
                                <asp:ListItem Value="3" Text="20"></asp:ListItem>
                                <asp:ListItem Value="4" Text="25"></asp:ListItem>
                                <asp:ListItem Value="5" Text="30"></asp:ListItem>
                                <asp:ListItem Value="6" Text="35"></asp:ListItem>
                                <asp:ListItem Value="7" Text="40"></asp:ListItem>
                                <asp:ListItem Value="8" Text="45"></asp:ListItem>
                                <asp:ListItem Value="9" Text="50"></asp:ListItem>
                                <asp:ListItem Value="10" Text="55"></asp:ListItem>
                                <asp:ListItem Value="11" Text="60"></asp:ListItem>
                                <asp:ListItem Value="12" Text="65"></asp:ListItem>
                                <asp:ListItem Value="13" Text="70"></asp:ListItem>
                                <asp:ListItem Value="14" Text="75"></asp:ListItem>
                                <asp:ListItem Value="15" Text="80"></asp:ListItem>
                                <asp:ListItem Value="16" Text="85"></asp:ListItem>
                                <asp:ListItem Value="17" Text="90"></asp:ListItem>
                                <asp:ListItem Value="18" Text="95"></asp:ListItem>
                                <asp:ListItem Value="19" Text="100"></asp:ListItem>
                            </asp:ComboBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="*"
                                ValidationGroup="save" ControlToValidate="cbNumberPoeple"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr style="margin-top: 15px">
                        <td class="align">
                            Day of the :
                        </td>
                        <td>
                            <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txt_day"
                                Format="dd/MM/yyyy">
                            </asp:CalendarExtender>
                            <asp:TextBox ID="txt_day" runat="server" Width="196px" Height="20px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="*"
                                ValidationGroup="save" ControlToValidate="txt_day"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="align">
                            Time :
                        </td>
                        <td>
                            <asp:DropDownList ID="drTime" runat="server" Width="204px" Height="24px">
                                <asp:ListItem Value="0" Text="9 - 9h30"></asp:ListItem>
                                <asp:ListItem Value="1" Text="10 - 11h30"></asp:ListItem>
                                <asp:ListItem Value="2" Text="13h - 13h30"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="align">
                            Menu :
                        </td>
                        <td>
                            <asp:UpdatePanel ID="up" runat="server">
                                <ContentTemplate>
                                    <asp:DropDownList ID="drMenu" runat="server" Width="204px" Height="24px" 
                                        AutoPostBack="true" onselectedindexchanged="drMenu_SelectedIndexChanged">
                                    </asp:DropDownList>
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Wedding/ListMenu.aspx"
                                        Target="_blank">Menu Detail</asp:HyperLink>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="drMenu" EventName="SelectedIndexChanged" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td class="align">
                            Price :
                        </td>
                        <td>
                            <asp:UpdatePanel ID="upPanel" runat="server">
                                <ContentTemplate>
                                    <asp:TextBox ID="txtPrice" runat="server" Width="200px" Height="20px" AutoPostBack="true"></asp:TextBox>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td class="align">
                            Note :
                        </td>
                        <td>
                            <%--<textarea id="txt_content" name="" rows=""></textarea>--%>
                            <asp:TextBox ID="txtNode" runat="server" TextMode="MultiLine" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="bt_set" runat="server" Text="Set Party" Style="background: #F90;
                                font-weight: bold" ValidationGroup="save" onclick="bt_set_Click" />
                            <asp:Button ID="bt_reset" runat="server" Text="Reset" 
                                Style="background: #F90; font-weight: bold" onclick="bt_reset_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <div class="clear">
    </div>
</div>
